﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VitCode.ObjectResolutionHelper
{
    [AttributeUsage(AttributeTargets.All)]
    public class OrIsCreateHistoryAttribute : Attribute
    {
        public static readonly OrIsCreateHistoryAttribute Default = new OrIsCreateHistoryAttribute(false);

        public OrIsCreateHistoryAttribute(bool enable)
        {
            DescriptionValue = enable;
        }

        public virtual bool Description { get { return DescriptionValue; } }

        protected bool DescriptionValue { get; set; }


        public override bool IsDefaultAttribute()
        {
            return Default.Equals(this);
        }
    }
}
